﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext>  options) : base(options)
        {
        }
        //角色表
        public DbSet<UserRole>  UserRoles{ get; set; }
        //用户表
        public DbSet<Users>  Users { get; set; }
        //状态表
        public DbSet<UserState> UserState { get; set; }
        //部门表 部门表
        public DbSet<Organization> MyProperty { get; set; }
        //职位表
        public DbSet<Position>  Position { get; set; }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
    }
}
